project(moduleshared)

find_package(Qt6 6.4 REQUIRED COMPONENTS Quick Qml)
qt_standard_project_setup()

qt_add_library(${PROJECT_NAME} SHARED
    Red.qml)

qt6_add_qml_module(${PROJECT_NAME}
     # OUTPUT_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/output
     PLUGIN_TARGET ${PROJECT_NAME}
     URI "ModuleShared"
     VERSION 1.0
     RESOURCE_PREFIX "/qt/qml"
     SOURCES
      # planbui.h
      # planbui.cpp
     QML_FILES
      # Button.qml
      Red.qml
     RESOURCES

      #
)
